package com.amado.course53;

import sun.reflect.Reflection;

/**
 * @author wangyulong
 * @version 1.5.0
 * @date 2020/5/4 18:40
 */

public class ReflectionTest {
    public static void main(String[] args) {
        Test2 test = new Test2();
        test.g();
    }
}


class Test2 {
    public void g() {
        gg();
    }

    public void gg() {
        System.out.println(Reflection.getCallerClass(0));
        System.out.println(Reflection.getCallerClass(1));
        System.out.println(Reflection.getCallerClass(2));
        System.out.println(Reflection.getCallerClass(3));
        System.out.println(Reflection.getCallerClass(4));
        System.out.println(Reflection.getCallerClass(5));
    }

}
